<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_base_major".
 *
 * @property string $id
 * @property string $department_id
 * @property string $school_id
 * @property string $major_dict_id
 * @property string $name
 * @property string $contacts
 * @property string $contact_way
 * @property string $build_date 招生日期
 * @property string $note
 * @property int $del_flag
 * @property string $create_by
 * @property string $create_time
 * @property string $update_by
 * @property string $update_time
 * @property string $recruitment_date
 * @property string $uuid
 */
class TBaseMajor extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_base_major';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['del_flag'], 'integer'],
            [['build_date', 'create_time', 'update_time', 'recruitment_date'], 'safe'],
            [['name', 'contacts', 'contact_way', 'note'], 'string', 'max' => 255],
            [['id', 'department_id', 'school_id', 'major_dict_id', 'create_by', 'update_by'], 'string', 'max' => 36],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'department_id' => 'Department ID',
            'school_id' => 'School ID',
            'major_dict_id' => 'Major Dict ID',
            'name' => 'Name',
            'contacts' => 'Contacts',
            'contact_way' => 'Contact Way',
            'build_date' => 'Build Date',
            'note' => 'Note',
            'del_flag' => 'Del Flag',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'recruitment_date' => 'Recruitment Date',
        ];
    }
}
